package com.googlecode.hyakutaded;

import java.util.HashMap;
import java.util.Map;

public class Clients {
	private Map<String, Client> clients = new HashMap<String, Client>();
	private static Clients instance = new Clients();

	public static Clients getInstance() {
		return instance;
	}

	public Client getClient(String id) {
		if (clients.containsKey(id)) {
			return clients.get(id);
		} else {
			Client c = new Client();
			c.setId(id);
			clients.put(id, c);
			return c;
		}
	}

}
